import request from '@/utils/request';
// import { TableListParams, TableListItem } from './data.d';

interface memberListParams {
  phone: string;
  status: number;
  pageIndex: number;
  pageSize: number;
}

export async function getProfitData(params: memberListParams) {
  return request('/service/partTimerWb/user/searchIncomes', {
    method: 'POST',
    data: params,
  });
}

export async function getProfitTotal(params = {}) {
  return request('/service/partTimerWb/user/incomesStat', {
    params,
  });
}
